/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package praticav.model;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author Jonatah Benatti
 */

@SequenceGenerator(name = "seq_usuarios",  
                   sequenceName = "seq_usuarios",  
                   allocationSize = 1)
        
@Entity
@Table(name="Usuarios")
public class Usuarios  implements Serializable {
    @GeneratedValue(strategy = GenerationType.SEQUENCE,  
             generator = "seq_usuarios")
    @Id
    private int usucodigo;
    private String usunome;
    private String ususenha;
    private String usuadministrador;

    public String getUsuadministrador() {
        return usuadministrador;
    }

    public void setUsuadministrador(String usuadministrador) {
        this.usuadministrador = usuadministrador;
    }

    public int getUsucodigo() {
        return usucodigo;
    }

    public void setUsucodigo(int usucodigo) {
        this.usucodigo = usucodigo;
    }

    public String getUsunome() {
        return usunome;
    }

    public void setUsunome(String usunome) {
        this.usunome = usunome;
    }

    public String getUsusenha() {
        return ususenha;
    }

    public void setUsusenha(String ususenha) {
        this.ususenha = ususenha;
    }
    
    public String toString(){ // Texto que vai aparecer na combobox
        return this.usunome;
    }        
    
}
